package com.ufgov.zc.client.component.ui.fieldeditor;import javax.swing.JComponent;import javax.swing.JTextField;import com.ufgov.zc.common.cp.model.CpVoucher;public class TextFieldEditor extends AbstractFieldEditor {  private JTextField field;  public TextFieldEditor(String name) {    super(name);  }  @Override  public Object getValue() {    return field.getText();  }  @Override  public void setValue(Object value) {    if (value == null || value instanceof String) {      field.setText((String) value);      return;    } else if (value instanceof CpVoucher) {      CpVoucher cpVoucher = (CpVoucher) value;      field.setText(cpVoucher.getCheckNo());      return;    }    field.setText(value.toString());  }  @Override  protected JComponent createEditorComponent() {    field = new JTextField();    return field;  }  @Override  public void setFieldEditorCode() {    // TODO Auto-generated method stub  }}